/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;

/**
 *
 * @author Gruppe 4
 */
public interface IFDBSupplier {
    // get all suppliers
    public ArrayList<Supplier> getAllSuppliers(boolean retriveAssociation);
    //get one supplier having the specified supplier id
    public Supplier findSupplier(int supplierId, boolean retriveAssociation);
    //find one supplier having the specified name
    public Supplier searchSupplierName( String name, boolean retriveAssociation);
    //insert a new supplier
    public int insertSupplier(Supplier sup);
    //update information about a supplier
    public int updateSupplier(Supplier sup);   
}
